/**
 * 
 */
package GUI;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;

import java.awt.Font;
import java.awt.Color;

/**
 * @author aviat
 *
 */
public class ManagerEditDetails extends JPanel{

	
	private static final long serialVersionUID = 1L;
	private JButton btnBack;
	private JLabel iconlabel;
	private JButton btnChangePassword;
	private JButton btnViewDetails;

	/**
	 * Constructor
	 */
	public ManagerEditDetails() {
		setLayout(null);
		btnBack = new JButton("Back");
		btnBack.setIcon(new ImageIcon(ManagerEditDetails.class.getResource("/resources/back22.png")));
		
		initialize();
	}

	private void initialize() {
		JLabel lblAddCustomer = new JLabel("Add Customer");
		lblAddCustomer.setForeground(new Color(0, 204, 255));
		lblAddCustomer.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblAddCustomer.setBounds(10, 11, 143, 25);
		add(lblAddCustomer);
		

		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
	
		/*JButton btnTest = new JButton("Test");
		btnTest.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				DefaultPieDataset pieDataset = new DefaultPieDataset();
				pieDataset.setValue("January", new Integer(10));
				pieDataset.setValue("February", new Integer(20));
				pieDataset.setValue("March", new Integer(30));
				pieDataset.setValue("April", new Integer(40));
				JFreeChart chart = ChartFactory.createPieChart("test pie chart", pieDataset, true, true, true);
				PiePlot p = (PiePlot) chart.getPlot();
				ChartFrame frame = new ChartFrame("test pie chart",chart);
				frame.setVisible(true);
				frame.setSize(450, 500);
			}
		});*/
		
		btnChangePassword = new JButton("Change Password");
		btnChangePassword.setIcon(new ImageIcon(ManagerEditDetails.class.getResource("/resources/change.png")));
		btnChangePassword.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnChangePassword.setBounds(232, 152, 185, 46);
		add(btnChangePassword);
		
		btnViewDetails = new JButton("View Details");
		btnViewDetails.setIcon(new ImageIcon(ManagerEditDetails.class.getResource("/resources/groups_folder.png")));
		btnViewDetails.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnViewDetails.setBounds(232, 290, 185, 46);
		add(btnViewDetails);
		//	btnTest.setBounds(250, 51, 89, 23);
		//	add(btnTest);
			
			iconlabel = new JLabel("");
			iconlabel.setIcon(LOGO);
			iconlabel.setBounds(0, 0, 786, 500);
			add(iconlabel);
	}


}
